/*
    Code : Dzlua
    Email: 505544956@qq.com
    Time : 2017/05/26
*/
#include "database.h"

namespace dzlua {

extern std::unique_ptr<DataBase> NewSQLite();

//------------------------------//
std::unique_ptr<DataBase> DataBase::NewDataBase(eDataBaseType type) {
    switch (type) {
        case DATABASE_SQLITE : return NewSQLite();
    }
    return NewSQLite();
}

} //end namespace dzlua